<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>代理工作-我的工单</title>
<link href="/zhenze/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/zhenze/Public/admin/js/jquery.js"></script>

<link href="/zhenze/Public/admin/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/zhenze/Public/admin/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="/zhenze/Public/admin/js/select-ui.min.js"></script>

<script type="text/javascript">
$(document).ready(function(e) {
	$("#status").uedSelect({
		width : 100			  
	});
});
</script>
</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="<?php echo U('index/welcome');?>">首页</a></li>
			<li><a href="<?php echo U('agent/index');?>">我的工单</a></li>
		</ul>
    </div>
    
    <div class="formbody">

		<form name="seachform" id="seachform" action="<?php echo U('agent/index');?>" method="post">
			<ul class="seachform">
				<li><label>综合查询</label><input name="info[keyword]" id="keyword" value="<?php echo ($keyword); ?>" type="text" class="scinput" /></li>	
				<li><label>状态</label>
					<div class="vocation">
						<select id="status" name="info[status]">
							<option value="">请选择类型</option>
							<?php if(is_array($statusinfo)): $i = 0; $__LIST__ = $statusinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>" <?php if($key == $status ): ?>selected<?php endif; ?>><?php echo ($data); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
					</div>
					</li>
				<li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
			</ul>
		</form>
		
		<table class="tablelist">
			<thead>
				<tr>
					<th><input name="" type="checkbox" value="" /></th>
					<th>编号</th>
					<th>申请用户</th>
					<th>申请名</th>
					<th>申请学校</th>
					<th>套餐/电话</th>
					<th>预约时间</th>
					<th>当前状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<?php if(is_array($listinfo)): $i = 0; $__LIST__ = $listinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><tr>
					<td><input name="" type="checkbox" value="" /></td>
					<td><?php echo ($data["id"]); ?></td>
					<td><?php echo ($data["nickname"]); ?></td>
					<td><?php echo ($data["name"]); ?></td>
					<td><?php echo ($data["school_name"]); ?></td>
					<td><?php echo ($data["set_title"]); ?>/<?php echo ($data["new_mobile"]); ?></td>
					<td><?php echo (date("Y-m-d H:i:s",$data["time"])); ?></td>
					<td><?php echo ($statusinfo[$data['status']]); ?></td>
					<td>
					<?php if($data["status"] == 2): ?><a href="<?php echo U('agent/ordersuccess',array('id'=>$data['id']));?>" class="tablelink">预约成功</a>
						<a href="<?php echo U('agent/orderfalse',array('id'=>$data['id'],'tel'=>$data['new_mobile']));?>" class="tablelink">预约失败</a><?php endif; ?>
						<?php if($data["status"] == 3): ?><a href="<?php echo U('agent/cardsuccess',array('id'=>$data['id'],'admin_id'=>$data['admin_id'],'setmeal_id'=>$data['setmeal_id'],'user_id'=>$data['user_id'],'tel'=>$data['new_mobile']));?>" class="tablelink">开卡成功</a><?php endif; ?>
					</td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			</tbody>
		</table>

		<?php echo ($pageshow); ?>

    </div>
<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>

</html>